package cn.school.mybatis.pojo;

import java.io.Serializable;
import java.util.*;

public class Grade implements Serializable {

	private long id;
	private String gname;

	private List<Subject> subjs = new ArrayList<>(0);

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public List<Subject> getSubjs() {
		return subjs;
	}

	public void setSubjs(List<Subject> subjs) {
		this.subjs = subjs;
	}

	@Override
	public String toString() {
		return "Grade [id=" + id + ", gname=" + gname + "]";
	}
}
